package cn.zzm.mybatisplus.core.support.log;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.logging.Log;

/**
 * TODO().
 *
 * <p>TODO().
 *
 * <p>版权所有:Copyright (c) 2019<br/>
 *
 * @version V1.0
 * @since 2019/6/10 19:23
 */
@Slf4j
public class LogbackImpl implements Log{

    public LogbackImpl(String clazz) {
    }

    public boolean isDebugEnabled() {
        return true;
    }

    public boolean isTraceEnabled() {
        return true;
    }

    public void error(String s, Throwable e) {
        log.error(s);
        e.printStackTrace(System.err);
    }

    public void error(String s) {
        log.error(s);
    }

    public void debug(String s) {
        log.info(s);
    }

    public void trace(String s) {
        System.out.println(s);
        log.trace(s);
    }

    public void warn(String s) {
        log.warn(s);
    }
}